package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:20
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductIssueNote implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long issueId;

    /**
     * Attribute issueId Be Seted Falg
     */
    private boolean issueIdSetted = false;

    /**
    * Attribute issueId is Null Falg
    */
    private boolean issueIdNull = false;
    private String noteContent;

    /**
     * Attribute noteContent Be Seted Falg
     */
    private boolean noteContentSetted = false;

    /**
    * Attribute noteContent is Null Falg
    */
    private boolean noteContentNull = false;
    private java.util.Date noteTime;

    /**
     * Attribute noteTime Be Seted Falg
     */
    private boolean noteTimeSetted = false;

    /**
    * Attribute noteTime is Null Falg
    */
    private boolean noteTimeNull = false;
    private long noteUserId;

    /**
     * Attribute noteUserId Be Seted Falg
     */
    private boolean noteUserIdSetted = false;

    /**
    * Attribute noteUserId is Null Falg
    */
    private boolean noteUserIdNull = false;
    private String noteUserName;

    /**
     * Attribute noteUserName Be Seted Falg
     */
    private boolean noteUserNameSetted = false;

    /**
    * Attribute noteUserName is Null Falg
    */
    private boolean noteUserNameNull = false;
    private String noteUserPhoto;

    /**
     * Attribute noteUserPhoto Be Seted Falg
     */
    private boolean noteUserPhotoSetted = false;

    /**
    * Attribute noteUserPhoto is Null Falg
    */
    private boolean noteUserPhotoNull = false;

    public ProductIssueNote() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get issueId
         *
         * @return long
         */
    final public long getIssueId() {
        return issueId;
    }

    /**
     * Set issueId
     *
     * @param long
     */
    final public void setIssueId(long issueId) {
        this.issueId = issueId;

        this.issueIdSetted = true;

        this.setIssueIdNull(false);
    }

    /**
     * Get issueId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIssueIdSetted() {
        return this.issueIdSetted;
    }

    /**
     * Set issueId Null
     *
     */
    final public void setIssueIdNull() {
        this.issueIdNull = true;
    }

    final public void setIssueIdNull(boolean aNullFlag) {
        this.issueIdNull = aNullFlag;
    }

    final public boolean isIssueIdNull() {
        return this.issueIdNull;
    }

    /**
         * Get noteContent
         *
         * @return String
         */
    final public String getNoteContent() {
        if (isNoteContentNull()) {
            return null;
        } else {
            return StringUtils.trim(noteContent);
        }
    }

    /**
     * Set noteContent
     *
     * @param String
     */
    final public void setNoteContent(String noteContent) {
        this.noteContent = StringUtils.trim(noteContent);

        this.noteContentSetted = true;

        this.setNoteContentNull(this.noteContent == null);
    }

    /**
     * Get noteContent Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNoteContentSetted() {
        return this.noteContentSetted;
    }

    /**
     * Set noteContent Null
     *
     */
    final public void setNoteContentNull() {
        this.noteContentNull = true;
    }

    final public void setNoteContentNull(boolean aNullFlag) {
        this.noteContentNull = aNullFlag;
    }

    final public boolean isNoteContentNull() {
        return this.noteContentNull;
    }

    /**
         * Get noteTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getNoteTime() {
        return noteTime;
    }

    /**
     * Set noteTime
     *
     * @param java.util.Date
     */
    final public void setNoteTime(java.util.Date noteTime) {
        this.noteTime = noteTime;

        this.noteTimeSetted = true;

        this.setNoteTimeNull(this.noteTime == null);
    }

    /**
     * Get noteTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNoteTimeSetted() {
        return this.noteTimeSetted;
    }

    /**
     * Set noteTime Null
     *
     */
    final public void setNoteTimeNull() {
        this.noteTimeNull = true;
    }

    final public void setNoteTimeNull(boolean aNullFlag) {
        this.noteTimeNull = aNullFlag;
    }

    final public boolean isNoteTimeNull() {
        return this.noteTimeNull;
    }

    /**
         * Get noteUserId
         *
         * @return long
         */
    final public long getNoteUserId() {
        return noteUserId;
    }

    /**
     * Set noteUserId
     *
     * @param long
     */
    final public void setNoteUserId(long noteUserId) {
        this.noteUserId = noteUserId;

        this.noteUserIdSetted = true;

        this.setNoteUserIdNull(false);
    }

    /**
     * Get noteUserId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNoteUserIdSetted() {
        return this.noteUserIdSetted;
    }

    /**
     * Set noteUserId Null
     *
     */
    final public void setNoteUserIdNull() {
        this.noteUserIdNull = true;
    }

    final public void setNoteUserIdNull(boolean aNullFlag) {
        this.noteUserIdNull = aNullFlag;
    }

    final public boolean isNoteUserIdNull() {
        return this.noteUserIdNull;
    }

    /**
         * Get noteUserName
         *
         * @return String
         */
    final public String getNoteUserName() {
        if (isNoteUserNameNull()) {
            return null;
        } else {
            return StringUtils.trim(noteUserName);
        }
    }

    /**
     * Set noteUserName
     *
     * @param String
     */
    final public void setNoteUserName(String noteUserName) {
        this.noteUserName = StringUtils.trim(noteUserName);

        this.noteUserNameSetted = true;

        this.setNoteUserNameNull(this.noteUserName == null);
    }

    /**
     * Get noteUserName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNoteUserNameSetted() {
        return this.noteUserNameSetted;
    }

    /**
     * Set noteUserName Null
     *
     */
    final public void setNoteUserNameNull() {
        this.noteUserNameNull = true;
    }

    final public void setNoteUserNameNull(boolean aNullFlag) {
        this.noteUserNameNull = aNullFlag;
    }

    final public boolean isNoteUserNameNull() {
        return this.noteUserNameNull;
    }

    /**
         * Get noteUserPhoto
         *
         * @return String
         */
    final public String getNoteUserPhoto() {
        if (isNoteUserPhotoNull()) {
            return null;
        } else {
            return StringUtils.trim(noteUserPhoto);
        }
    }

    /**
     * Set noteUserPhoto
     *
     * @param String
     */
    final public void setNoteUserPhoto(String noteUserPhoto) {
        this.noteUserPhoto = StringUtils.trim(noteUserPhoto);

        this.noteUserPhotoSetted = true;

        this.setNoteUserPhotoNull(this.noteUserPhoto == null);
    }

    /**
     * Get noteUserPhoto Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNoteUserPhotoSetted() {
        return this.noteUserPhotoSetted;
    }

    /**
     * Set noteUserPhoto Null
     *
     */
    final public void setNoteUserPhotoNull() {
        this.noteUserPhotoNull = true;
    }

    final public void setNoteUserPhotoNull(boolean aNullFlag) {
        this.noteUserPhotoNull = aNullFlag;
    }

    final public boolean isNoteUserPhotoNull() {
        return this.noteUserPhotoNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductIssueNote) == false) {
            return false;
        }

        ProductIssueNote other = (ProductIssueNote) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("issueId=");
        buffer.append(this.issueId);

        buffer.append("noteContent=");
        buffer.append(this.noteContent);

        buffer.append("noteTime=");
        buffer.append(this.noteTime);

        buffer.append("noteUserId=");
        buffer.append(this.noteUserId);

        buffer.append("noteUserName=");
        buffer.append(this.noteUserName);

        buffer.append("noteUserPhoto=");
        buffer.append(this.noteUserPhoto);

        buffer.append("]");

        return buffer.toString();
    }
}
